const printMiTable = (html) => {
  const win = window.open('', '打印', 'height=1100,width=1100');
  win.document.write('<html><head><title>生产制作指示</title>');
  win.document.write('<style>table{border-collapse:collapse}table td{border:1px solid black}.td-t{border-top:0}.td-l{border-left:none}.td-b{border-bottom:0}.td-r{border-right:0}.checkbox-group{display:flex}.checkbox-wrap{display:flex;align-items:center}.mi-checkbox{width:12px;height:12px;margin-right:5px;margin-left:10px;border:1px solid black}.mi-checkbox-checked{position:relative}.mi-checkbox-checked::after{position:absolute;left:-1px;width:12px;height:6px;border-bottom:2px solid black;border-left:2px solid black;-ms-transform:rotate(-50deg);-moz-transform:rotate(-50deg);-webkit-transform:rotate(-50deg);-o-transform:rotate(-50deg);transform:rotate(-50deg);content:\'\'}</style>\t');
  win.document.write('</head><body  style="width: 1000px">');
  win.document.write(html);
  win.document.write('</body></html>');
  win.document.close();
  win.focus();
  win.print();
  win.close();
}

export {
  printMiTable
}
